const express = require('express')

const app = express()

app.set('secret', 'ds5d1adfsdf212')

app.use(require('cors')())
app.use(express.json())

require('./route/web')(app)
require('./route/admin')(app)
require('./plugins/db')(app)
app.use('/uploads', express.static(__dirname + '/uploads'))

app.listen(3000, () => {
  console.log('3000 is running')
})
